package event;

import org.springframework.context.ApplicationEvent;

/**
 * Created with IDEA
 * author:Yhk
 * Date:2019/7/5
 * Time:10:04 AM
 */
public class UserNameEvent extends ApplicationEvent {
    //注册用户对象
    private String name;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public UserNameEvent(Object source) {
        super(source);
        this.name = name;
    }

    public String getName() {
        return name;
    }
}